package com.cx.pojo;

import com.cx.common.BaseEntity;

import java.util.ArrayList;
import java.util.List;

public class WheelExample extends BaseEntity {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WheelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWheelIdIsNull() {
            addCriterion("wheel_id is null");
            return (Criteria) this;
        }

        public Criteria andWheelIdIsNotNull() {
            addCriterion("wheel_id is not null");
            return (Criteria) this;
        }

        public Criteria andWheelIdEqualTo(Integer value) {
            addCriterion("wheel_id =", value, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdNotEqualTo(Integer value) {
            addCriterion("wheel_id <>", value, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdGreaterThan(Integer value) {
            addCriterion("wheel_id >", value, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wheel_id >=", value, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdLessThan(Integer value) {
            addCriterion("wheel_id <", value, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdLessThanOrEqualTo(Integer value) {
            addCriterion("wheel_id <=", value, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdIn(List<Integer> values) {
            addCriterion("wheel_id in", values, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdNotIn(List<Integer> values) {
            addCriterion("wheel_id not in", values, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdBetween(Integer value1, Integer value2) {
            addCriterion("wheel_id between", value1, value2, "wheelId");
            return (Criteria) this;
        }

        public Criteria andWheelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wheel_id not between", value1, value2, "wheelId");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeIsNull() {
            addCriterion("frontbrake is null");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeIsNotNull() {
            addCriterion("frontbrake is not null");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeEqualTo(String value) {
            addCriterion("frontbrake =", value, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeNotEqualTo(String value) {
            addCriterion("frontbrake <>", value, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeGreaterThan(String value) {
            addCriterion("frontbrake >", value, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeGreaterThanOrEqualTo(String value) {
            addCriterion("frontbrake >=", value, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeLessThan(String value) {
            addCriterion("frontbrake <", value, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeLessThanOrEqualTo(String value) {
            addCriterion("frontbrake <=", value, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeLike(String value) {
            addCriterion("frontbrake like", value, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeNotLike(String value) {
            addCriterion("frontbrake not like", value, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeIn(List<String> values) {
            addCriterion("frontbrake in", values, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeNotIn(List<String> values) {
            addCriterion("frontbrake not in", values, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeBetween(String value1, String value2) {
            addCriterion("frontbrake between", value1, value2, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andFrontbrakeNotBetween(String value1, String value2) {
            addCriterion("frontbrake not between", value1, value2, "frontbrake");
            return (Criteria) this;
        }

        public Criteria andRearbrakIsNull() {
            addCriterion("rearbrak is null");
            return (Criteria) this;
        }

        public Criteria andRearbrakIsNotNull() {
            addCriterion("rearbrak is not null");
            return (Criteria) this;
        }

        public Criteria andRearbrakEqualTo(String value) {
            addCriterion("rearbrak =", value, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakNotEqualTo(String value) {
            addCriterion("rearbrak <>", value, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakGreaterThan(String value) {
            addCriterion("rearbrak >", value, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakGreaterThanOrEqualTo(String value) {
            addCriterion("rearbrak >=", value, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakLessThan(String value) {
            addCriterion("rearbrak <", value, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakLessThanOrEqualTo(String value) {
            addCriterion("rearbrak <=", value, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakLike(String value) {
            addCriterion("rearbrak like", value, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakNotLike(String value) {
            addCriterion("rearbrak not like", value, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakIn(List<String> values) {
            addCriterion("rearbrak in", values, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakNotIn(List<String> values) {
            addCriterion("rearbrak not in", values, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakBetween(String value1, String value2) {
            addCriterion("rearbrak between", value1, value2, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andRearbrakNotBetween(String value1, String value2) {
            addCriterion("rearbrak not between", value1, value2, "rearbrak");
            return (Criteria) this;
        }

        public Criteria andParkingtypeIsNull() {
            addCriterion("parkingtype is null");
            return (Criteria) this;
        }

        public Criteria andParkingtypeIsNotNull() {
            addCriterion("parkingtype is not null");
            return (Criteria) this;
        }

        public Criteria andParkingtypeEqualTo(String value) {
            addCriterion("parkingtype =", value, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeNotEqualTo(String value) {
            addCriterion("parkingtype <>", value, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeGreaterThan(String value) {
            addCriterion("parkingtype >", value, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeGreaterThanOrEqualTo(String value) {
            addCriterion("parkingtype >=", value, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeLessThan(String value) {
            addCriterion("parkingtype <", value, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeLessThanOrEqualTo(String value) {
            addCriterion("parkingtype <=", value, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeLike(String value) {
            addCriterion("parkingtype like", value, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeNotLike(String value) {
            addCriterion("parkingtype not like", value, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeIn(List<String> values) {
            addCriterion("parkingtype in", values, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeNotIn(List<String> values) {
            addCriterion("parkingtype not in", values, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeBetween(String value1, String value2) {
            addCriterion("parkingtype between", value1, value2, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andParkingtypeNotBetween(String value1, String value2) {
            addCriterion("parkingtype not between", value1, value2, "parkingtype");
            return (Criteria) this;
        }

        public Criteria andFronttireIsNull() {
            addCriterion("fronttire is null");
            return (Criteria) this;
        }

        public Criteria andFronttireIsNotNull() {
            addCriterion("fronttire is not null");
            return (Criteria) this;
        }

        public Criteria andFronttireEqualTo(String value) {
            addCriterion("fronttire =", value, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireNotEqualTo(String value) {
            addCriterion("fronttire <>", value, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireGreaterThan(String value) {
            addCriterion("fronttire >", value, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireGreaterThanOrEqualTo(String value) {
            addCriterion("fronttire >=", value, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireLessThan(String value) {
            addCriterion("fronttire <", value, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireLessThanOrEqualTo(String value) {
            addCriterion("fronttire <=", value, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireLike(String value) {
            addCriterion("fronttire like", value, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireNotLike(String value) {
            addCriterion("fronttire not like", value, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireIn(List<String> values) {
            addCriterion("fronttire in", values, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireNotIn(List<String> values) {
            addCriterion("fronttire not in", values, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireBetween(String value1, String value2) {
            addCriterion("fronttire between", value1, value2, "fronttire");
            return (Criteria) this;
        }

        public Criteria andFronttireNotBetween(String value1, String value2) {
            addCriterion("fronttire not between", value1, value2, "fronttire");
            return (Criteria) this;
        }

        public Criteria andReartireIsNull() {
            addCriterion("reartire is null");
            return (Criteria) this;
        }

        public Criteria andReartireIsNotNull() {
            addCriterion("reartire is not null");
            return (Criteria) this;
        }

        public Criteria andReartireEqualTo(String value) {
            addCriterion("reartire =", value, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireNotEqualTo(String value) {
            addCriterion("reartire <>", value, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireGreaterThan(String value) {
            addCriterion("reartire >", value, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireGreaterThanOrEqualTo(String value) {
            addCriterion("reartire >=", value, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireLessThan(String value) {
            addCriterion("reartire <", value, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireLessThanOrEqualTo(String value) {
            addCriterion("reartire <=", value, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireLike(String value) {
            addCriterion("reartire like", value, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireNotLike(String value) {
            addCriterion("reartire not like", value, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireIn(List<String> values) {
            addCriterion("reartire in", values, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireNotIn(List<String> values) {
            addCriterion("reartire not in", values, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireBetween(String value1, String value2) {
            addCriterion("reartire between", value1, value2, "reartire");
            return (Criteria) this;
        }

        public Criteria andReartireNotBetween(String value1, String value2) {
            addCriterion("reartire not between", value1, value2, "reartire");
            return (Criteria) this;
        }

        public Criteria andSparetireIsNull() {
            addCriterion("sparetire is null");
            return (Criteria) this;
        }

        public Criteria andSparetireIsNotNull() {
            addCriterion("sparetire is not null");
            return (Criteria) this;
        }

        public Criteria andSparetireEqualTo(String value) {
            addCriterion("sparetire =", value, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireNotEqualTo(String value) {
            addCriterion("sparetire <>", value, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireGreaterThan(String value) {
            addCriterion("sparetire >", value, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireGreaterThanOrEqualTo(String value) {
            addCriterion("sparetire >=", value, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireLessThan(String value) {
            addCriterion("sparetire <", value, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireLessThanOrEqualTo(String value) {
            addCriterion("sparetire <=", value, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireLike(String value) {
            addCriterion("sparetire like", value, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireNotLike(String value) {
            addCriterion("sparetire not like", value, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireIn(List<String> values) {
            addCriterion("sparetire in", values, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireNotIn(List<String> values) {
            addCriterion("sparetire not in", values, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireBetween(String value1, String value2) {
            addCriterion("sparetire between", value1, value2, "sparetire");
            return (Criteria) this;
        }

        public Criteria andSparetireNotBetween(String value1, String value2) {
            addCriterion("sparetire not between", value1, value2, "sparetire");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}